package com.example.readexceldata.controller;


import com.example.readexceldata.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-12-16
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private IUserService watchService;

    @PostMapping("import")
    public void importWatches(MultipartFile file) {
        String msg=watchService.importWatchesData(file);
    }

}
